package com.whale.controllers.manage;

import javax.servlet.http.HttpServletRequest;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import com.whale.constants.MenuGroupConstants;
import com.whale.controllers.AbstractController;

@Controller
@RequestMapping(value = "/manage")
public class ManageController extends AbstractController {

	@RequestMapping(method = RequestMethod.GET)
	public String getGeneralSettings(HttpServletRequest request, Model model) {
		populateNavigation(model, "/manage", MenuGroupConstants.MANAGE_MENU_GROUP_ID);
		return "manage/general";
	}
	
	@RequestMapping(value = "users", method = RequestMethod.GET)
	public String getManageUsers(HttpServletRequest request, Model model) {
		populateNavigation(model, "/manage/users", MenuGroupConstants.MANAGE_MENU_GROUP_ID);
		return "manage/general";
	}
}
